<template lang="">
    <div>
        欢迎您：{{username}}
        <ul>
            <li v-for='i in userlist'>{{i.mobile}}</li>
        </ul>
    </div>
</template>
<script>
export default {
    data(){
        return{
            username:localStorage.getItem('mobile'),
            userlist:[]
        }
    },
    methods: {
        getuserlist(){
            this.axios.get('userlist').then(res=>{
                this.userlist = res.data.list
            })
        }
    },
    mounted() {
        this.getuserlist()
    },
}
</script>
<style lang="">
    
</style>